package com.aaa.spring.exception;

import java.io.Serializable;

/**
 *
 * @ClassName: BizException
 * @Description: 业务异常
 * @author zhu
 * @date 2016年7月25日 下午4:45:11
 */
public class BizException extends RuntimeException implements Serializable {
	/**错误代码**/
	private Integer code;
	/**异常信息**/
	private String msg ;

	public BizException(Integer code,String msg) {
		this.code = code;
		this.msg = msg;
	}

	public BizException() {
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}


	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
